package com.yh.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * minio文件服务器的配置属性
 *
 * @Author yuhuan
 * @Date 2022/3/21
 */
@ConfigurationProperties(prefix = "spring.minio")
public class MinioProperties {
    private String minioHost;
    private int minioPort;
    private String minioUserName;
    private String minioPassWord;

    public String getMinioHost() {
        return minioHost;
    }

    public void setMinioHost(String minioHost) {
        this.minioHost = minioHost;
    }

    public int getMinioPort() {
        return minioPort;
    }

    public void setMinioPort(int minioPort) {
        this.minioPort = minioPort;
    }

    public String getMinioUserName() {
        return minioUserName;
    }

    public void setMinioUserName(String minioUserName) {
        this.minioUserName = minioUserName;
    }

    public String getMinioPassWord() {
        return minioPassWord;
    }

    public void setMinioPassWord(String minioPassWord) {
        this.minioPassWord = minioPassWord;
    }

    @Override
    public String toString() {
        return "MinioProperties{" +
                "minioHost='" + minioHost + '\'' +
                ", minioPort=" + minioPort +
                ", minioUserName='" + minioUserName + '\'' +
                ", minioPassWord='" + minioPassWord + '\'' +
                '}';
    }
}
